package cn.edu.scau.cmi.wujiaming.domain;

import java.util.HashSet;
import java.util.Set;

public class Teacher implements java.io.Serializable{

	private Integer id;
	private String name;
	private Set students = new HashSet<>();
	
	public Teacher() {
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Set getStudents() {
		return students;
	}

	public void setStudents(Set students) {
		this.students = students;
	}
	public  String toString() {
		return "Teacher:{name:" + this.name +"}";
	}
}
